<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::http类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="../../de/dc0/classwheels_1_1http-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::http类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d4/d51/http_8hpp_source.html">http.hpp</a>&gt;</code></p>
<div class="dynheader">
wheels::http 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dd/d5c/classwheels_1_1http__coll__graph.png" border="0" usemap="#awheels_1_1http_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1http_coll__map" id="awheels_1_1http_coll__map">
<area shape="rect" title=" " alt="" coords="5,5,173,416"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aaba924b6a216bae9964fd7ec76a0de2a" id="r_aaba924b6a216bae9964fd7ec76a0de2a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aaba924b6a216bae9964fd7ec76a0de2a">emErrCode</a> { <a class="el" href="#aaba924b6a216bae9964fd7ec76a0de2aa384890afe603860db66d75fc9c62c5f6">ERR_ALLOC_MEM</a> = -1000
, <a class="el" href="#aaba924b6a216bae9964fd7ec76a0de2aad9b91fd691b88b36b805e21ac35e803a">ERR_INIT</a>
, <a class="el" href="#aaba924b6a216bae9964fd7ec76a0de2aa11110903cf2df41f38e0b0f782862ff3">OK</a> = 0
 }</td></tr>
<tr class="separator:aaba924b6a216bae9964fd7ec76a0de2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1be223557efa4f20d924411f8b39c610" id="r_a1be223557efa4f20d924411f8b39c610"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1be223557efa4f20d924411f8b39c610">mtd</a> { <a class="el" href="#a1be223557efa4f20d924411f8b39c610ac5e323844215a47a24499f1bcb75fe72">GET</a>
, <a class="el" href="#a1be223557efa4f20d924411f8b39c610a91fc9e0ae9d3b79d9a2c14c3c3a9d401">POST</a>
 }</td></tr>
<tr class="separator:a1be223557efa4f20d924411f8b39c610"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ac205a9806c29a007d236f10424b59a36" id="r_ac205a9806c29a007d236f10424b59a36"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac205a9806c29a007d236f10424b59a36">http</a> (int overtime=180)</td></tr>
<tr class="separator:ac205a9806c29a007d236f10424b59a36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d080778775ecab2c4eb9c185b192b57" id="r_a5d080778775ecab2c4eb9c185b192b57"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5d080778775ecab2c4eb9c185b192b57">~http</a> ()</td></tr>
<tr class="separator:a5d080778775ecab2c4eb9c185b192b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4b3f7c9e9ab8062de75294af8b0e8c5" id="r_ad4b3f7c9e9ab8062de75294af8b0e8c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad4b3f7c9e9ab8062de75294af8b0e8c5">server</a> (const std::string &amp;svr)</td></tr>
<tr class="memdesc:ad4b3f7c9e9ab8062de75294af8b0e8c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置服务器地址，这个地址可以是域名也可以是IP地址  <br /></td></tr>
<tr class="separator:ad4b3f7c9e9ab8062de75294af8b0e8c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba058da78ed66460e8734b623645aae1" id="r_aba058da78ed66460e8734b623645aae1"><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aba058da78ed66460e8734b623645aae1">server</a> (int &amp;<a class="el" href="#abf74b3be7352e1e8c6023a6df1089d4e">port</a>) const</td></tr>
<tr class="separator:aba058da78ed66460e8734b623645aae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af57be44397aae928cc4d15801a0ff84c" id="r_af57be44397aae928cc4d15801a0ff84c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af57be44397aae928cc4d15801a0ff84c">server</a> (const std::string &amp;svr, int <a class="el" href="#abf74b3be7352e1e8c6023a6df1089d4e">port</a>)</td></tr>
<tr class="separator:af57be44397aae928cc4d15801a0ff84c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30b075be257ac1d3da28e9509e0c4257" id="r_a30b075be257ac1d3da28e9509e0c4257"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a30b075be257ac1d3da28e9509e0c4257">url</a> (const std::string &amp;url)</td></tr>
<tr class="memdesc:a30b075be257ac1d3da28e9509e0c4257"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置URL，注意这个URL必须是经过URL格式化的数据。这个url是不包含协议和服务器地址部分内容  <br /></td></tr>
<tr class="separator:a30b075be257ac1d3da28e9509e0c4257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86fe82d1ec49e68f1a96297de358beaf" id="r_a86fe82d1ec49e68f1a96297de358beaf"><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a86fe82d1ec49e68f1a96297de358beaf">url</a> () const</td></tr>
<tr class="separator:a86fe82d1ec49e68f1a96297de358beaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b77751da6b24a738f3a2e8724c77618" id="r_a7b77751da6b24a738f3a2e8724c77618"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7b77751da6b24a738f3a2e8724c77618">head</a> (const std::string &amp;head)</td></tr>
<tr class="memdesc:a7b77751da6b24a738f3a2e8724c77618"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置头信息。  <br /></td></tr>
<tr class="separator:a7b77751da6b24a738f3a2e8724c77618"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22f10182a306a3ec6802be31638dd5e9" id="r_a22f10182a306a3ec6802be31638dd5e9"><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a22f10182a306a3ec6802be31638dd5e9">head</a> () const</td></tr>
<tr class="separator:a22f10182a306a3ec6802be31638dd5e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3667d63f8827d3954b15fae16a552e8e" id="r_a3667d63f8827d3954b15fae16a552e8e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3667d63f8827d3954b15fae16a552e8e">cert</a> (const std::string &amp;cert)</td></tr>
<tr class="memdesc:a3667d63f8827d3954b15fae16a552e8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">配置证书路径  <br /></td></tr>
<tr class="separator:a3667d63f8827d3954b15fae16a552e8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a892f673aee43e58ffaebb8b1e47de261" id="r_a892f673aee43e58ffaebb8b1e47de261"><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a892f673aee43e58ffaebb8b1e47de261">cert</a> () const</td></tr>
<tr class="separator:a892f673aee43e58ffaebb8b1e47de261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a353477355f39c295a609bc060052bceb" id="r_a353477355f39c295a609bc060052bceb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a353477355f39c295a609bc060052bceb">ssl</a> (bool ssl)</td></tr>
<tr class="memdesc:a353477355f39c295a609bc060052bceb"><td class="mdescLeft">&#160;</td><td class="mdescRight">开启则使用Https协议  <br /></td></tr>
<tr class="separator:a353477355f39c295a609bc060052bceb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03252826449619859e36ef4256e486df" id="r_a03252826449619859e36ef4256e486df"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a03252826449619859e36ef4256e486df">ssl</a> () const</td></tr>
<tr class="separator:a03252826449619859e36ef4256e486df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf74b3be7352e1e8c6023a6df1089d4e" id="r_abf74b3be7352e1e8c6023a6df1089d4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abf74b3be7352e1e8c6023a6df1089d4e">port</a> (int port)</td></tr>
<tr class="separator:abf74b3be7352e1e8c6023a6df1089d4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0611b602ae558f28043f424db17a9850" id="r_a0611b602ae558f28043f424db17a9850"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0611b602ae558f28043f424db17a9850">port</a> () const</td></tr>
<tr class="separator:a0611b602ae558f28043f424db17a9850"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af10dbe8ed0bf4e0d73eede116aafa2bc" id="r_af10dbe8ed0bf4e0d73eede116aafa2bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af10dbe8ed0bf4e0d73eede116aafa2bc">keepalive</a> (bool keep)</td></tr>
<tr class="separator:af10dbe8ed0bf4e0d73eede116aafa2bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafc8bf0858c48a2540aa27ebaf5e0559" id="r_aafc8bf0858c48a2540aa27ebaf5e0559"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aafc8bf0858c48a2540aa27ebaf5e0559">keepalive</a> () const</td></tr>
<tr class="separator:aafc8bf0858c48a2540aa27ebaf5e0559"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96291582f8e63359b0a78a451b085799" id="r_a96291582f8e63359b0a78a451b085799"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a96291582f8e63359b0a78a451b085799">get</a> (const std::string &amp;query, std::function&lt; void(const char *rst, size_t len) &gt; fun)</td></tr>
<tr class="memdesc:a96291582f8e63359b0a78a451b085799"><td class="mdescLeft">&#160;</td><td class="mdescRight">get  <br /></td></tr>
<tr class="separator:a96291582f8e63359b0a78a451b085799"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d5ec6326e0bf8e3cd9c45cef9533981" id="r_a9d5ec6326e0bf8e3cd9c45cef9533981"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9d5ec6326e0bf8e3cd9c45cef9533981">post</a> (const std::string &amp;query, std::function&lt; void(const char *rst, size_t len) &gt; fun)</td></tr>
<tr class="memdesc:a9d5ec6326e0bf8e3cd9c45cef9533981"><td class="mdescLeft">&#160;</td><td class="mdescRight">post  <br /></td></tr>
<tr class="separator:a9d5ec6326e0bf8e3cd9c45cef9533981"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af98bc267123ee733d2a86c204e826a77" id="r_af98bc267123ee733d2a86c204e826a77"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af98bc267123ee733d2a86c204e826a77">timeOut</a> (long t)</td></tr>
<tr class="memdesc:af98bc267123ee733d2a86c204e826a77"><td class="mdescLeft">&#160;</td><td class="mdescRight">配置通讯超时时间，单位为s.在默认的情况下超时时间为10s  <br /></td></tr>
<tr class="separator:af98bc267123ee733d2a86c204e826a77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8a7fd654762470b52c9bd96f33c6308" id="r_ad8a7fd654762470b52c9bd96f33c6308"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad8a7fd654762470b52c9bd96f33c6308">timeOut</a> ()</td></tr>
<tr class="memdesc:ad8a7fd654762470b52c9bd96f33c6308"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前的超时时间  <br /></td></tr>
<tr class="separator:ad8a7fd654762470b52c9bd96f33c6308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b3f3598fab39ce7ba77debed620e67f" id="r_a3b3f3598fab39ce7ba77debed620e67f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3b3f3598fab39ce7ba77debed620e67f">__on_recv</a> (const char *ptr, size_t size)</td></tr>
<tr class="memdesc:a3b3f3598fab39ce7ba77debed620e67f"><td class="mdescLeft">&#160;</td><td class="mdescRight">__on_recv  <br /></td></tr>
<tr class="separator:a3b3f3598fab39ce7ba77debed620e67f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a9b61d4f08b77bd35e29c7f0d3795a1c6" id="r_a9b61d4f08b77bd35e29c7f0d3795a1c6"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9b61d4f08b77bd35e29c7f0d3795a1c6">http_write_callback</a> (char *ptr, size_t size, size_t nmemb, void *obj)</td></tr>
<tr class="separator:a9b61d4f08b77bd35e29c7f0d3795a1c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock">
<p class="definition">在文件 <a class="el" href="../../d4/d51/http_8hpp_source.html">http.hpp</a> 第 <a class="el" href="../../d4/d51/http_8hpp_source.html#l00016">16</a> 行定义.</p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="aaba924b6a216bae9964fd7ec76a0de2a" name="aaba924b6a216bae9964fd7ec76a0de2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaba924b6a216bae9964fd7ec76a0de2a">&#9670;&#160;</a></span>emErrCode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#aaba924b6a216bae9964fd7ec76a0de2a">wheels::http::emErrCode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="aaba924b6a216bae9964fd7ec76a0de2aa384890afe603860db66d75fc9c62c5f6" name="aaba924b6a216bae9964fd7ec76a0de2aa384890afe603860db66d75fc9c62c5f6"></a>ERR_ALLOC_MEM&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aaba924b6a216bae9964fd7ec76a0de2aad9b91fd691b88b36b805e21ac35e803a" name="aaba924b6a216bae9964fd7ec76a0de2aad9b91fd691b88b36b805e21ac35e803a"></a>ERR_INIT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aaba924b6a216bae9964fd7ec76a0de2aa11110903cf2df41f38e0b0f782862ff3" name="aaba924b6a216bae9964fd7ec76a0de2aa11110903cf2df41f38e0b0f782862ff3"></a>OK&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="../../d4/d51/http_8hpp_source.html">http.hpp</a> 第 <a class="el" href="../../d4/d51/http_8hpp_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<a id="a1be223557efa4f20d924411f8b39c610" name="a1be223557efa4f20d924411f8b39c610"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1be223557efa4f20d924411f8b39c610">&#9670;&#160;</a></span>mtd</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#a1be223557efa4f20d924411f8b39c610">wheels::http::mtd</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a1be223557efa4f20d924411f8b39c610ac5e323844215a47a24499f1bcb75fe72" name="a1be223557efa4f20d924411f8b39c610ac5e323844215a47a24499f1bcb75fe72"></a>GET&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a1be223557efa4f20d924411f8b39c610a91fc9e0ae9d3b79d9a2c14c3c3a9d401" name="a1be223557efa4f20d924411f8b39c610a91fc9e0ae9d3b79d9a2c14c3c3a9d401"></a>POST&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="../../d4/d51/http_8hpp_source.html">http.hpp</a> 第 <a class="el" href="../../d4/d51/http_8hpp_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="ac205a9806c29a007d236f10424b59a36" name="ac205a9806c29a007d236f10424b59a36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac205a9806c29a007d236f10424b59a36">&#9670;&#160;</a></span>http()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">http::http </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>overtime</em></span><span class="paramdefsep"> = </span><span class="paramdefval">180</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<a id="a5d080778775ecab2c4eb9c185b192b57" name="a5d080778775ecab2c4eb9c185b192b57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d080778775ecab2c4eb9c185b192b57">&#9670;&#160;</a></span>~http()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">http::~http </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00040">40</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a3b3f3598fab39ce7ba77debed620e67f" name="a3b3f3598fab39ce7ba77debed620e67f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b3f3598fab39ce7ba77debed620e67f">&#9670;&#160;</a></span>__on_recv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void http::__on_recv </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>__on_recv </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr</td><td></td></tr>
    <tr><td class="paramname">size</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00052">52</a> 行定义.</p>

</div>
</div>
<a id="a892f673aee43e58ffaebb8b1e47de261" name="a892f673aee43e58ffaebb8b1e47de261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a892f673aee43e58ffaebb8b1e47de261">&#9670;&#160;</a></span>cert() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string wheels::http::cert </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a892f673aee43e58ffaebb8b1e47de261_icgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a892f673aee43e58ffaebb8b1e47de261_icgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a892f673aee43e58ffaebb8b1e47de261_icgraph" id="ad2/d49/classwheels_1_1http_a892f673aee43e58ffaebb8b1e47de261_icgraph">
<area shape="rect" title=" " alt="" coords="176,5,298,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a3667d63f8827d3954b15fae16a552e8e" title="配置证书路径" alt="" coords="5,5,128,32"/>
<area shape="poly" title=" " alt="" coords="160,21,128,21,128,16,160,16"/>
</map>
</div>

</div>
</div>
<a id="a3667d63f8827d3954b15fae16a552e8e" name="a3667d63f8827d3954b15fae16a552e8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3667d63f8827d3954b15fae16a552e8e">&#9670;&#160;</a></span>cert() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; http::cert </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>cert</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>配置证书路径 </p>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00081">81</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a3667d63f8827d3954b15fae16a552e8e_cgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a3667d63f8827d3954b15fae16a552e8e_cgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a3667d63f8827d3954b15fae16a552e8e_cgraph" id="ad2/d49/classwheels_1_1http_a3667d63f8827d3954b15fae16a552e8e_cgraph">
<area shape="rect" title="配置证书路径" alt="" coords="5,5,128,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a892f673aee43e58ffaebb8b1e47de261" title=" " alt="" coords="176,5,298,32"/>
<area shape="poly" title=" " alt="" coords="128,16,160,16,160,21,128,21"/>
</map>
</div>

</div>
</div>
<a id="a96291582f8e63359b0a78a451b085799" name="a96291582f8e63359b0a78a451b085799"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96291582f8e63359b0a78a451b085799">&#9670;&#160;</a></span>get()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int http::get </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>query</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; void(const char *rst, size_t len) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">query</td><td></td></tr>
    <tr><td class="paramname">fun</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功操作返回0，否则返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00222">222</a> 行定义.</p>

</div>
</div>
<a id="a22f10182a306a3ec6802be31638dd5e9" name="a22f10182a306a3ec6802be31638dd5e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22f10182a306a3ec6802be31638dd5e9">&#9670;&#160;</a></span>head() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string wheels::http::head </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a22f10182a306a3ec6802be31638dd5e9_icgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a22f10182a306a3ec6802be31638dd5e9_icgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a22f10182a306a3ec6802be31638dd5e9_icgraph" id="ad2/d49/classwheels_1_1http_a22f10182a306a3ec6802be31638dd5e9_icgraph">
<area shape="rect" title=" " alt="" coords="182,5,310,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a7b77751da6b24a738f3a2e8724c77618" title="设置头信息。" alt="" coords="5,5,134,32"/>
<area shape="poly" title=" " alt="" coords="166,21,134,21,134,16,166,16"/>
</map>
</div>

</div>
</div>
<a id="a7b77751da6b24a738f3a2e8724c77618" name="a7b77751da6b24a738f3a2e8724c77618"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b77751da6b24a738f3a2e8724c77618">&#9670;&#160;</a></span>head() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; http::head </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>head</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置头信息。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">head[</td><td>I ]， 头信息内容。可以一次提交多行的头信息，行之间以<br  />
区分；也可 分多次配置头信息，每次可以配置一行或者多行都可以。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>当分多次配置如果要读取行信息只能拿到最后一次的配置内容 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00072">72</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a7b77751da6b24a738f3a2e8724c77618_cgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a7b77751da6b24a738f3a2e8724c77618_cgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a7b77751da6b24a738f3a2e8724c77618_cgraph" id="ad2/d49/classwheels_1_1http_a7b77751da6b24a738f3a2e8724c77618_cgraph">
<area shape="rect" title="设置头信息。" alt="" coords="5,5,134,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a22f10182a306a3ec6802be31638dd5e9" title=" " alt="" coords="182,5,310,32"/>
<area shape="poly" title=" " alt="" coords="134,16,166,16,166,21,134,21"/>
</map>
</div>

</div>
</div>
<a id="aafc8bf0858c48a2540aa27ebaf5e0559" name="aafc8bf0858c48a2540aa27ebaf5e0559"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafc8bf0858c48a2540aa27ebaf5e0559">&#9670;&#160;</a></span>keepalive() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool wheels::http::keepalive </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af10dbe8ed0bf4e0d73eede116aafa2bc" name="af10dbe8ed0bf4e0d73eede116aafa2bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af10dbe8ed0bf4e0d73eede116aafa2bc">&#9670;&#160;</a></span>keepalive() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; http::keepalive </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>keep</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00099">99</a> 行定义.</p>

</div>
</div>
<a id="a0611b602ae558f28043f424db17a9850" name="a0611b602ae558f28043f424db17a9850"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0611b602ae558f28043f424db17a9850">&#9670;&#160;</a></span>port() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int wheels::http::port </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a0611b602ae558f28043f424db17a9850_icgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a0611b602ae558f28043f424db17a9850_icgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a0611b602ae558f28043f424db17a9850_icgraph" id="ad2/d49/classwheels_1_1http_a0611b602ae558f28043f424db17a9850_icgraph">
<area shape="rect" title=" " alt="" coords="176,5,298,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#abf74b3be7352e1e8c6023a6df1089d4e" title=" " alt="" coords="5,5,128,32"/>
<area shape="poly" title=" " alt="" coords="160,21,128,21,128,16,160,16"/>
</map>
</div>

</div>
</div>
<a id="abf74b3be7352e1e8c6023a6df1089d4e" name="abf74b3be7352e1e8c6023a6df1089d4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf74b3be7352e1e8c6023a6df1089d4e">&#9670;&#160;</a></span>port() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; http::port </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>port</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00093">93</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_abf74b3be7352e1e8c6023a6df1089d4e_cgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_abf74b3be7352e1e8c6023a6df1089d4e_cgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_abf74b3be7352e1e8c6023a6df1089d4e_cgraph" id="ad2/d49/classwheels_1_1http_abf74b3be7352e1e8c6023a6df1089d4e_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,128,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a0611b602ae558f28043f424db17a9850" title=" " alt="" coords="176,5,298,32"/>
<area shape="poly" title=" " alt="" coords="128,16,160,16,160,21,128,21"/>
</map>
</div>

</div>
</div>
<a id="a9d5ec6326e0bf8e3cd9c45cef9533981" name="a9d5ec6326e0bf8e3cd9c45cef9533981"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d5ec6326e0bf8e3cd9c45cef9533981">&#9670;&#160;</a></span>post()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int http::post </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>query</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; void(const char *rst, size_t len) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>post </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">query</td><td></td></tr>
    <tr><td class="paramname">fun</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00230">230</a> 行定义.</p>

</div>
</div>
<a id="ad4b3f7c9e9ab8062de75294af8b0e8c5" name="ad4b3f7c9e9ab8062de75294af8b0e8c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4b3f7c9e9ab8062de75294af8b0e8c5">&#9670;&#160;</a></span>server() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; http::server </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>svr</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置服务器地址，这个地址可以是域名也可以是IP地址 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">svr,服务器地址</td><td></td></tr>
    <tr><td class="paramname">port,服务器监听端口</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00060">60</a> 行定义.</p>

</div>
</div>
<a id="af57be44397aae928cc4d15801a0ff84c" name="af57be44397aae928cc4d15801a0ff84c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af57be44397aae928cc4d15801a0ff84c">&#9670;&#160;</a></span>server() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; wheels::http::server </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>svr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>port</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aba058da78ed66460e8734b623645aae1" name="aba058da78ed66460e8734b623645aae1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba058da78ed66460e8734b623645aae1">&#9670;&#160;</a></span>server() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string wheels::http::server </td>
          <td>(</td>
          <td class="paramtype">int &amp;</td>          <td class="paramname"><span class="paramname"><em>port</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a03252826449619859e36ef4256e486df" name="a03252826449619859e36ef4256e486df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03252826449619859e36ef4256e486df">&#9670;&#160;</a></span>ssl() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool wheels::http::ssl </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a03252826449619859e36ef4256e486df_icgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a03252826449619859e36ef4256e486df_icgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a03252826449619859e36ef4256e486df_icgraph" id="ad2/d49/classwheels_1_1http_a03252826449619859e36ef4256e486df_icgraph">
<area shape="rect" title=" " alt="" coords="171,5,288,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a353477355f39c295a609bc060052bceb" title="开启则使用Https协议" alt="" coords="5,5,123,32"/>
<area shape="poly" title=" " alt="" coords="155,21,123,21,123,16,155,16"/>
</map>
</div>

</div>
</div>
<a id="a353477355f39c295a609bc060052bceb" name="a353477355f39c295a609bc060052bceb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a353477355f39c295a609bc060052bceb">&#9670;&#160;</a></span>ssl() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; http::ssl </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>ssl</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>开启则使用Https协议 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ssl</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00087">87</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a353477355f39c295a609bc060052bceb_cgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a353477355f39c295a609bc060052bceb_cgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a353477355f39c295a609bc060052bceb_cgraph" id="ad2/d49/classwheels_1_1http_a353477355f39c295a609bc060052bceb_cgraph">
<area shape="rect" title="开启则使用Https协议" alt="" coords="5,5,123,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a03252826449619859e36ef4256e486df" title=" " alt="" coords="171,5,288,32"/>
<area shape="poly" title=" " alt="" coords="123,16,155,16,155,21,123,21"/>
</map>
</div>

</div>
</div>
<a id="ad8a7fd654762470b52c9bd96f33c6308" name="ad8a7fd654762470b52c9bd96f33c6308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8a7fd654762470b52c9bd96f33c6308">&#9670;&#160;</a></span>timeOut() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long wheels::http::timeOut </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前的超时时间 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p class="definition">在文件 <a class="el" href="../../d4/d51/http_8hpp_source.html">http.hpp</a> 第 <a class="el" href="../../d4/d51/http_8hpp_source.html#l00117">117</a> 行定义.</p>

</div>
</div>
<a id="af98bc267123ee733d2a86c204e826a77" name="af98bc267123ee733d2a86c204e826a77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af98bc267123ee733d2a86c204e826a77">&#9670;&#160;</a></span>timeOut() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; wheels::http::timeOut </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>t</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>配置通讯超时时间，单位为s.在默认的情况下超时时间为10s </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">t[</td><td>I ], 新的超时时间 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d4/d51/http_8hpp_source.html">http.hpp</a> 第 <a class="el" href="../../d4/d51/http_8hpp_source.html#l00108">108</a> 行定义.</p>

</div>
</div>
<a id="a86fe82d1ec49e68f1a96297de358beaf" name="a86fe82d1ec49e68f1a96297de358beaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86fe82d1ec49e68f1a96297de358beaf">&#9670;&#160;</a></span>url() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string wheels::http::url </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a86fe82d1ec49e68f1a96297de358beaf_icgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a86fe82d1ec49e68f1a96297de358beaf_icgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a86fe82d1ec49e68f1a96297de358beaf_icgraph" id="ad2/d49/classwheels_1_1http_a86fe82d1ec49e68f1a96297de358beaf_icgraph">
<area shape="rect" title=" " alt="" coords="168,5,282,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a30b075be257ac1d3da28e9509e0c4257" title="设置URL，注意这个URL必须是经过URL格式化的数据。这个url是不包含协议和服务器地址部分内容" alt="" coords="5,5,120,32"/>
<area shape="poly" title=" " alt="" coords="152,21,120,21,120,16,152,16"/>
</map>
</div>

</div>
</div>
<a id="a30b075be257ac1d3da28e9509e0c4257" name="a30b075be257ac1d3da28e9509e0c4257"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30b075be257ac1d3da28e9509e0c4257">&#9670;&#160;</a></span>url() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d49/classwheels_1_1http.html">http</a> &amp; http::url </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>url</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置URL，注意这个URL必须是经过URL格式化的数据。这个url是不包含协议和服务器地址部分内容 </p>
<dl class="section note"><dt>注解</dt><dd>千万注意不要传递没有经过URL格式化的数据 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00066">66</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d49/classwheels_1_1http_a30b075be257ac1d3da28e9509e0c4257_cgraph.png" border="0" usemap="#ad2/d49/classwheels_1_1http_a30b075be257ac1d3da28e9509e0c4257_cgraph" alt=""/></div>
<map name="ad2/d49/classwheels_1_1http_a30b075be257ac1d3da28e9509e0c4257_cgraph" id="ad2/d49/classwheels_1_1http_a30b075be257ac1d3da28e9509e0c4257_cgraph">
<area shape="rect" title="设置URL，注意这个URL必须是经过URL格式化的数据。这个url是不包含协议和服务器地址部分内容" alt="" coords="5,5,120,32"/>
<area shape="rect" href="../../d2/d49/classwheels_1_1http.html#a86fe82d1ec49e68f1a96297de358beaf" title=" " alt="" coords="168,5,282,32"/>
<area shape="poly" title=" " alt="" coords="120,16,152,16,152,21,120,21"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">友元及相关符号说明</h2>
<a id="a9b61d4f08b77bd35e29c7f0d3795a1c6" name="a9b61d4f08b77bd35e29c7f0d3795a1c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b61d4f08b77bd35e29c7f0d3795a1c6">&#9670;&#160;</a></span>http_write_callback</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t http_write_callback </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>obj</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a> 第 <a class="el" href="../../d2/d03/http_8cpp_source.html#l00010">10</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../d4/d51/http_8hpp_source.html">http.hpp</a></li>
<li>src/<a class="el" href="../../d2/d03/http_8cpp_source.html">http.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
